package com.health.ts.service.sysmanage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.health.ts.dao.sysmanage.SysRoleMapper;
import com.health.ts.dao.sysmanage.SysRoleUserMapper;
import com.health.ts.entity.sysmanage.SysRole;
import com.health.ts.entity.sysmanage.SysRoleUser;
/**
 * 角色用户关联
 * @author Administrator
 */
@Service
public class SysRoleUserService extends ServiceImpl<SysRoleUserMapper, SysRoleUser> {
	
	@Autowired
	SysRoleMapper sysRoleMapper;
	
	/**
	 * 查询所有角色
	 * @param roleUser
	 * @return
	 */
	public SysRole selectRoles(SysRoleUser roleUser){
		SysRole sysRole=sysRoleMapper.selectById(roleUser.getRole_id());
		return sysRole;
	}

}
